package com.dm.cloud.images.mode;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 存储卷创建请求
 */
@Data
@Schema(description = "创建存储卷结构")
public class VolumeCreateRequest {

    // 存储卷名称
    @Schema(description = "存储卷名称")
    private String name;

    // 存储卷模式
    @Schema(description = "存储卷模式:默认local")
    private String driver="local";

    @Schema(description = "是否配置nfs")
    private Boolean enableNfs;

    @Schema(description = "nfs服务地址: xxx.xxx.com 或者ip")
    private String nfsServer;

    @Schema(description = "nfs驱动指向的路径")
    private String device;

    @Schema(description = "节点ID")
    private String nodeId;

}
